package main

import (
	"fmt"
	"xframe/src/config"
	"xframe/src/router"

	"github.com/gin-gonic/gin"
)

func main() {
	gin.SetMode(gin.ReleaseMode)

	r, p := router.SetRouter(), config.Cfg.Server.Port
	fmt.Printf("Listening and serving HTTP on %s\n", p)

	err := r.Run(":" + p)
	config.Err("端口被占用 ===> ", err)
}
